<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<h2>
    Log On</h2>
<%= Html.ValidationSummary("Login was unsuccessful. Please correct the errors and try again.") %>
<% using (Html.BeginForm("LogOn", "Account"))
   { %>
<div>
    <fieldset>
        <legend>Account Information</legend>
        <label for="username">
            Username:</label>
        <%= Html.TextBox("username") %>
        <%= Html.ValidationMessage("username") %>
        <label for="password">
            Password:</label>
        <%= Html.Password("password") %>
        <%= Html.ValidationMessage("password") %>
        <br />
        <p>
            <%= Html.CheckBox("rememberMe") %>
            <label style="display: inline;" for="rememberMe">
                Remember me?</label>
            <br />
            <b>
                <%= Html.ActionLink("Register", "Register","Account") %>
            </b>
        </p>
        <input type="submit" value="Log On" />
    </fieldset>
</div>
<% } %>